package com.vanke.devops.domain.manager.docker.extend.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author 陈景阳
 * @since 2018/6/7
 */
@Getter
@Setter
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ContainerSpec implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonProperty("Image")
    private String image;

    @JsonProperty("Labels")
    private Map<String,String> labels;

    @JsonProperty("Command")
    private List<String> command;

    @JsonProperty("Args")
    private List<String> args;

    @JsonProperty("Hostname")
    private String hostname;

    @JsonProperty("Env")
    private List<String> env;

    @JsonProperty("Dir")
    private String dir;

    @JsonProperty("User")
    private String user;

    @JsonProperty("Groups")
    private List<String> groups;
}
